package org.share.develop.common.hooks;

public abstract class  InstanceCreate {
    private final static Object monitor = new Object();
    private static volatile Object instance;

    public static Object getInstance(){
        if(instance == null){
            synchronized (monitor){
                if (null == instance) {
//
//                    Thread.currentThread().getContextClassLoader().get
                    StackTraceElement[] stack = new Throwable().getStackTrace();
                    System.err.println(stack[0].getClassName());
                    System.err.println(stack[1].getClassName());


                }
            }
        }

        return  new Object();
    }

}
